
var express = require('express');
var router = express.Router();
var upload = require('../../middleware/fileupload');


/*
 * 简单的上传图片  upload.array('avatar', 2)  create time 2017/7/10
 */

router.post('/', upload.array('avatar', 9),(req, res)=> {
	let imgArr=[];
	req.files.map(r=>imgArr.push(r.filename))
    res.status(200).json(imgArr)
})








module.exports = router;